<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>注册</title>
</head>
<body>
<section>
  <form action="usersadd.php" method="post">
  <table border="1">
    <caption>用户注册</caption>
    <tr>
      <td><label for="uname">用户名</label></td>
      <td><input type="text" name="uname" id="uname" required></td>
    </tr>
    <tr>
      <td><label for="password">密码</label></td>
      <td><input type="password" name="password" id="password" required></td>
    </tr>
    <tr>
      <td><label for="gender">性别</label></td>
      <td><input type="radio" name="gender" id="gender" value="男"  checked>男
          <input type="radio" name="gender" id="gender" value="女" >女
        </td>
    </tr>
    <tr>
      <td><label for="birthdate">出生日期</label></td>
      <td><input type="date" name="birthdate" id="birthdate" required></td>
    </tr>
     <tr>
      <td><label for="hobby">爱好</label></td>
      <td><input type="checkbox" name="hobby[]" id="hobby" value="游泳"   > 游泳
      <input type="checkbox" name="hobby[]" id="hobby" value="唱歌"   > 唱歌
      <input type="checkbox" name="hobby[]" id="hobby" value="运动"  checked > 运动
        </td>
    </tr>
    <tr>
      <td><label for="degree">学历</label></td>
      <td>
       <select name="degree" id="degree">
       <option value=""> ==请选择== </option>
       <option value="0"> 大专 </option>
       <option value="1"> 本科 </option>
       <option value="2"> 研究生 </option>
      </select>
      </td>
    <tr>
      <td><label for="intro">个人简介</label></td>
      <td><textarea name="intro" rows="5"></textarea></td>
    </tr>
    <!-- <tr>
      <td>照片</td>
      <td><input type="file" name="pic"></td>
    </tr> -->
    <tr>
      <td colspan="2" align="center">
        <input type="submit" value="注册"></input>
        <input type="reset" value="重置"></input>
      </td>
    </tr>

  </table>
</section>
</form>
</body>
</html>